package com.ylyq.ylxx.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName UpdatePlanBudgetInfoRequest
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/6/30 18:24
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "更新广告计划预算的请求参数")
public class UpdatePlanBudgetInfoRequest {
    @ApiModelProperty(value = "广告主ID")
    @NotNull(message = "广告主ID不能为空")
    private Long advertiser_id;
    @ApiModelProperty(value = "\t批量修改预算，包含计划ID和预算（批量修改数量不能超过100）")
    private List<DataBean> data;
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class DataBean {
        /**
         * campaign_id : 1
         */
        @ApiModelProperty(value = "计划id")
        private Long ad_id;
        @ApiModelProperty(value = "预算(最低预算100元,单次预算修改幅度不小于100元,日修改预算不超过20次)。如果是总预算广告，且设了起始日期，将要求您预算设置需要大于或等于[投放天数 * 100]，即满足每日最低预算100的要求。")
        private Double budget;
    }
}
